/*
 * $Id: UiStepLog.java,v 1.4 2009/07/24 18:22:59 oliver Exp $
 * 
 * Copyright (C) 2006 General Electric Company. All Rights Reserved.
 * 
 * This software is the confidential and proprietary information of the General
 * Electric Company (GE). You shall not disclose this software and shall use it
 * only in accordance with the terms of the license agreement you entered into
 * with GE.
 * 
 * GE MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
 * NON-INFRINGEMENT. GE SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
 * AS A RESULT OF USING, MODIFYING, OR DISTRIBUTING THIS SOFTWARE OR ITS
 * DERIVATIVES.
 */
package com.ge.healthcare.autosc.ui.pojo;

import java.util.ArrayList;
import java.util.List;

import com.ge.healthcare.autosc.common.database.pojo.CfgStepType;
import com.ge.healthcare.autosc.common.database.pojo.HstStepTime;

public class UiStepLog extends AscUiObject {
	private Long stepTimeId;
	private Long stepTypeId;
	private String stepType;
	private String serverName;
	private List<String> logText;
	public UiStepLog(){
		
	}
	public UiStepLog(HstStepTime stepTime){
		logText = new ArrayList<String>();
		load(stepTime);
	}
	public void load(HstStepTime stepTime){
		this.stepTimeId = stepTime.getStepTimeId();
		this.stepTypeId = stepTime.getStepTypeId();
		setStartTime(stepTime.getStartTime());
		setEndTime(stepTime.getEndTime());
		setCodeId(stepTime.getCodeId());
	}
	public void load(CfgStepType stepType){
		setStepTypeId(stepType.getStepTypeId());
		setStepType(stepType.getStepType());
		setServerName(stepType.getServerName());
	}
	public void addLogText(String log){
		logText.add(log);
	}
	/**
	 * @return the stepTimeId
	 */
	public Long getStepTimeId() {
		return stepTimeId;
	}
	/**
	 * @param stepTimeId the stepTimeId to set
	 */
	public void setStepTimeId(Long stepTimeId) {
		this.stepTimeId = stepTimeId;
	}
	/**
	 * @return the stepTypeId
	 */
	public Long getStepTypeId() {
		return stepTypeId;
	}
	/**
	 * @param stepTypeId the stepTypeId to set
	 */
	public void setStepTypeId(Long stepTypeId) {
		this.stepTypeId = stepTypeId;
	}
	/**
	 * @return the stepType
	 */
	public String getStepType() {
		return stepType;
	}
	/**
	 * @param stepType the stepType to set
	 */
	public void setStepType(String stepType) {
		this.stepType = stepType;
	}
	/**
	 * @return the serverName
	 */
	public String getServerName() {
		return serverName;
	}
	/**
	 * @param serverName the serverName to set
	 */
	public void setServerName(String serverName) {
		this.serverName = serverName;
	}
	/**
	 * @return the logText
	 */
	public List<?> getLogText() {
		return logText;
	}
	/**
	 * @param logText the logText to set
	 */
	public void setLogText(List<String> logText) {
		this.logText = logText;
	}
}
